package org.tempuri;

import java.rmi.RemoteException;

import org.tempuri.CoordinateServiceStub.GetJsonData;
import org.tempuri.CoordinateServiceStub.GetJsonDataResponse;

public class WebServiceHelpUtil {

	public static ReturnResult execute(String jsonData) throws Exception{
		CoordinateServiceStub stub = new CoordinateServiceStub();
		GetJsonData getJsonData = new GetJsonData();
		getJsonData.setSJsonInData(jsonData);
		GetJsonDataResponse response = stub.getJsonData(getJsonData);
		return new ReturnResult(response.getGetJsonDataResult(), response.getSJsonOutData());
	}
}
